package ro.unibuc.nautilus.service;

import java.util.List;

import ro.unibuc.nautilus.dao.GenericDAO;
import ro.unibuc.nautilus.domain.Harbour;

public class HarboursServiceImpl implements HarboursService {

	private GenericDAO<Harbour, Long> harboursDAO;
	
	public Harbour findHarbour(Long id) {
		return harboursDAO.find(id);
	}

	public List<Harbour> findAll() { 
		return harboursDAO.findAll();
	}

	public void create(Harbour harbour) {
		harboursDAO.create(harbour);
	}

	public void setHarboursDAO(GenericDAO<Harbour, Long> harboursDAO) {
		this.harboursDAO = harboursDAO;
	}
}
